<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div id="hm-app-main" class="main" style="min-height: 865px;">
    <div ui-view="" class="ng-scope">
        <div class="main-view active ng-scope">
            <div class="content">
                <div class="head">
                    <div class="inner">
                        <h2>学生信息管理</h2>
                        <button type="button" class="btn hmbtn-defalt1 hmbtn-add fr"
                                onclick="studentAdd()">新增
                        </button>
                    </div>
                </div>
                <div class="article">
                    <div class="select_nav has_moreSearch">
                        <div class="clear">
                            <div class="fl margin-right20 ng-scope">
                            <select id="professionId" onchange="funChange()" style="line-height: 40px;height: 40px;" class="select_commom" >
                                <option value="" ${professionId==null?'selected':''}>专业</option>
                                <option value="1" ${professionId=='1'?'selected':''}>软件技术</option>
                                <option value="2" ${professionId=='2'?'selected':''}>大数据技术</option>
                            </select>
                        </div>
                            <div class="fl margin-right20 ng-scope">
                            <select id="classId" onchange="funChange()" style="line-height: 40px;height: 40px;" class="select_commom " >
                                <option value="" ${classId==null?'selected':''}>班级</option>
                                <option value="1" ${classId=='1'?'selected':''}>软件技术1班</option>
                                <option value="2" ${classId=='2'?'selected':''}>软件技术2班</option>
                                <option value="3" ${classId=='3'?'selected':''}>软件技术3班</option>
                                <option value="4" ${classId=='4'?'selected':''}>软件技术4班</option>
                                <option value="5" ${classId=='5'?'selected':''}>软件技术5班</option>
                                <option value="6" ${classId=='6'?'selected':''}>软件技术6班</option>
                                <option value="7" ${classId=='7'?'selected':''}>软件技术7班</option>
                                <option value="8" ${classId=='8'?'selected':''}>大数据技术1班</option>
                                <option value="9" ${classId=='9'?'selected':''}>大数据技术2班</option>
                            </select>
                        </div>
                        </div>
                    </div>
                        <div class="table-responsive table_nav ng-scope" ng-if="overViewMangeInfo.length>0">
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th class="align-center">姓名</th>
                                    <th class="align-center">学号</th>
                                    <th class="align-center">性别</th>
                                    <th class="align-center">籍贯</th>
                                    <th class="align-center">联系电话</th>
                                    <th class="align-center">专业</th>
                                    <th class="align-center">班级</th>
                                    <th class="align-center">更新时间</th>
                                    <th class="align-center">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <%
                                    List<HashMap> list=(List<HashMap>)request.getSession().getAttribute("studentList");
                                    for (int i=0;i<list.size();i++){
                                        HashMap item=list.get(i);
                                %>
                                  <tr>
                                        <td class="align-center ng-binding"><%=item.get("name")%></td>
                                        <td class="align-center ng-binding"><%=item.get("stuNo")%></td>
                                        <td class="align-center ng-binding"><%=item.get("sex")%></td>
                                        <td class="align-center ng-binding"><%=item.get("nativePlace")%></td>
                                        <td class="align-center ng-binding"><%=item.get("phone")%></td>
                                        <td class="align-center ng-binding"><%=item.get("professionName")%></td>
                                        <td class="align-center ng-binding"><%=item.get("className")%></td>
                                        <td class="align-center ng-binding"><%=item.get("updateTime")%></td>
                                        <td class="align-center">
                                            <button type="button" class="hmbtn hmbtn-defalt2 hmbtn-tiny" ng-click="showEdit(item.wid,$event)">修改</button>
                                        </td>
                                  </tr>
                                <%}%>
                                </tbody>
                            </table>
            <div class="Page navigation" >
                <p>当前显示<span>1到10</span>条，共<span><%=list.size()%></span>条记录</p>
                <ul class="pagination ng-scope">
                    <li class="disabled">
                        <a ng-click="loadPage(1)"aria-label="Previous">
                            <span class="glyphicon glyphicon-triangle-left" aria-hidden="true">
                            </span>
                        </a></li>
                    <li ng-class="{'active':page==1}" class="active">
                        <a ng-click="loadPage(1)">1</a>
                    </li><li ng-class="{'active':page==2}">
                    <a ng-click="loadPage(2)">2</a>
                </li><li class="">
                    <a ng-click="loadPage(2)" aria-label="Next">
                    <span class="glyphicon glyphicon-triangle-right" aria-hidden="true">

                    </span>
                </a>
                </li>
                </ul>
            </div>
         </div>
        </div>
    </div>
</div>
        <div class="child-view ng-scope">
            <ui-view class="ng-scope">

            </ui-view>
        </div>
    </div>
</div>
<script src="/plugin/jquery-3.7.1.min.js"></script>
<script src="/js/studentInfo.js?_t=<%=new Date().getSeconds() %>" type="text/javascript"></script>
